<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Textarea</title>
        <script type="text/javascript">
          function setup_event_listener() {
              var elem = document.getElementById('qute-textarea');
              elem.addEventListener('input', function() {
                  console.log("contents: " + elem.value);
              });
          }
        </script>
    </head>
    <body onload="setup_event_listener()">
        <textarea id="qute-textarea"></textarea>
    </body>
</html>
